import request from '@/utils/request'

// 查询用户选择列表
export function listSelectUser(query) {
  return request({
    url: '/lxy/selectUser/list',
    method: 'get',
    params: query
  })
}

// 查询用户选择详细
export function getSelectUser(id) {
  return request({
    url: '/lxy/selectUser/' + id,
    method: 'get'
  })
}

// 新增用户选择
export function addSelectUser(data) {
  return request({
    url: '/lxy/selectUser',
    method: 'post',
    data: data
  })
}

// 修改用户选择
export function updateSelectUser(data) {
  return request({
    url: '/lxy/selectUser',
    method: 'put',
    data: data
  })
}

// 删除用户选择
export function delSelectUser(userId,timeId) {
  return request({
    url: '/lxy/selectUser/' + userId+"/"+timeId,
    method: 'delete'
  })
}

// 重置教职工项目轮数
export function reset() {
  return request({
    url: '/lxy/selectUser/reset',
    method: 'get'
  })
}
